<?php
Yii::import('application.modules.mii.MiiMigrations');
class DefaultController extends Controller
{
  public function actionIndex()
  {
    $miimigrations=new MiiMigrations();
    $migrations=$miimigrations->getAllMigrations();
    $version=$miimigrations->getCurrentVersion();
    $list=$miimigrations->getlist('110117_075423');
    Yii::app()->getClientScript()->registerCoreScript('jquery');
    
    $path=Yii::app()->assetManager->publish(
        Yii::getPathOfAlias('application.modules.mii.assets')
    );
    Yii::app()->clientScript->registerCssFile($path.'/css/styles.css');

    $this->layout = "main"; 
    $this->render('index',array('migrations'=>$migrations,'path'=>$path));
  }
}